package com.imooc.pojo.bo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @author 啊昌
 * @date 2025/9/11 22:28
 * RegistLoginBO 接受前端的登录手机号和验证码
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class RegistLoginBO {

	@NotBlank
	@Length(min = 11, max = 11, message = "手机号长度不正确")
	private String mobile;
	@NotBlank
	private String smsCode;
}
